from base import Base
from selenium.webdriver.common.by import By
class Page(Base):
    def guanzhu(self):
        loc=(By.ID,'com.kongfz.app:id/lav_2')
        ele=self.find_ele(loc)
        return ele
    def sousuo(self):
        loc=(By.XPATH,'//android.widget.LinearLayout[@resource-id="com.kongfz.app:id/ll_search"]')
        ele=self.find_ele(loc)
        return ele

    def shuru(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def djss(self):
        loc=(By.ID,'com.kongfz.app:id/tv_search')
        ele=self.find_ele(loc)
        return ele
    def gz(self):
        loc=(By.XPATH,'//android.widget.ImageView[@resource-id="com.kongfz.app:id/lottie_attention"]')
        ele=self.find_ele(loc)
        return ele
    def ysf(self):
        loc=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/androidx.viewpager.widget.ViewPager/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout/android.widget.FrameLayout/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.widget.LinearLayout[2]/android.widget.FrameLayout/android.widget.FrameLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.TextView')
        ele=self.find_ele(loc)
        return ele